package com.example.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * @Date 2022/1/27
 * @Created by Jonathan
 */
@Aspect
@Component
public class MyAspect {

	@Before("execution(* com.example.aop.UserService.*(..))")
	public void before() {
		System.out.println("before");
	}
}
